package com.fengchao.api.dao.cfg;

import com.fengchao.api.dao.BaseMapper;
import com.fengchao.model.cfg.CfgChinaCityList;

import java.util.List;

public interface CfgChinaCityListMapper extends BaseMapper<CfgChinaCityList> {
    /**
     * 根据城市id
     *
     * @param cityId
     * @return
     */
    CfgChinaCityList findByCityId(Integer cityId);

    /**
     * 根据城市id
     *
     * @param cityCode
     * @return
     */
    CfgChinaCityList findByCityCode(String cityCode);

    /**
     * 获取热门的城市
     *
     * @return
     */
    List<CfgChinaCityList> findByRecommanded();


    /**
     * 获取所有的城市
     *
     * @return
     */
    List<CfgChinaCityList> findAll();


    /**
     * 获取所有的显示城市
     *
     * @return
     */
    List<CfgChinaCityList> findIsDisplay();

}